'Declaration
Public Function SaveToFileAsync( _ ByVal document As TDocument, _ ByVal file As NFile, _ ByVal saveSettings As TSaveSettings, _ ByVal progress As NProgress _ ) As NPromise(Of NUndefined)
'Usage
Dim instance As NDocumentFormat(Of TDocument,TLoadSettings,TSaveSettings) Dim document As TDocument Dim file As NFile Dim saveSettings As TSaveSettings Dim progress As NProgress Dim value As NPromise(Of NUndefined) value = instance.SaveToFileAsync(document, file, saveSettings, progress)
public NPromise<NUndefined> SaveToFileAsync( TDocument document, NFile file, TSaveSettings saveSettings, NProgress progress )
Parameters
- document
- document to save. Cannot be null.
- file
- file to save document to. Cannot be null.
- saveSettings
- save settings. Can be null
- progress
- optional progress class
Return Value
a promise which resolves to true if document was saved to file, or false if saving was canceled by the user